package com.xgk.boot.module.core.dal.entity.order;

import com.baomidou.mybatisplus.annotation.*;
import com.xgk.boot.framework.mybatis.core.dataobject.BaseDO;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 已出账订单取消退回费用详情表
 * </p>
 *
 * @author yfbao
 * @since 2025-06-14
 */
@Data
@TableName("order_return_limit_fee")
public class OrderReturnLimitFeeDO extends BaseDO {


    /**
     * 自动增长列
     */
    @TableId(value = "orlf_id", type = IdType.ASSIGN_ID)
    private Long orlfId;

    /**
     * 订单取消记录ID
     */
    @TableField(value = "orl_id")
    private Long orlId;

    /**
     * 订单编号
     */
    @TableField(value = "order_code")
    private String orderCode;

    /**
     * 运单号
     */
    @TableField(value = "tracking_number")
    private String trackingNumber;

    /**
     * 调整费用类型
     */
    @TableField(value = "charge_category_detail_code")
    private String chargeCategoryDetailCode;

    /**
     * 系统费用金额
     */
    @TableField(value = "sys_amount")
    private BigDecimal sysAmount;

    /**
     * 系统费用项
     */
    @TableField(value = "sys_ft_code")
    private String sysFtCode;

    /**
     * 创建时间
     */
    @TableField(value = "add_time", fill = FieldFill.INSERT)
    private Date addTime;

    /**
     * 关联账单ID
     */
    @TableField(value = "bbb_id")
    private Long bbbId;

    /**
     * 账单状态：0未处理，1未出账，2已出账
     */
    @TableField(value = "bil_status")
    private Integer bilStatus;


    @Override
    public String toString() {
        return "OrderReturnLimitFee{" +
        ", orlfId = " + orlfId +
        ", orlId = " + orlId +
        ", orderCode = " + orderCode +
        ", trackingNumber = " + trackingNumber +
        ", chargeCategoryDetailCode = " + chargeCategoryDetailCode +
        ", sysAmount = " + sysAmount +
        ", sysFtCode = " + sysFtCode +
        ", addTime = " + addTime +
        ", bbbId = " + bbbId +
        ", bilStatus = " + bilStatus +
        "}";
    }
}
